package com.isoft.illustrationsdraw.entity;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

import lombok.Data;

@Data
@TableName("reports")
public class Report {

    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long reporterId;
    
    private String reportedType; // 'comment', 'illustration', 'user'

    @JsonSerialize(using = ToStringSerializer.class)
    private Long reportedId;
    private String reason;
    private String details;
    private String status; // 'Pending', 'Reviewed', 'Resolved', 'Rejected'
    private LocalDateTime createdAt;
    private String updatedAt;
    public Report(){}
}
